﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.Networks.CollapratingOrgNetwork"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="450" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="125"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="200"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        
        <TextBlock 
            Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" HorizontalAlignment="Left"
            Margin="5" FontSize="15" TextWrapping="Wrap">
            Given list of grants, this step will build network 
            via publication citations. Citations are retrieved 
            from citation-grant link (publications that cites grant number)
        </TextBlock>

        <Label
            Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,0,0"
            FontSize="14" FontWeight="Bold" HorizontalAlignment="Left"
            VerticalAlignment="Center">
            Enter grant number or project ID, one entry a line
        </Label>

        <ComboBox
            Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" 
            HorizontalAlignment="Left" x:Name="cboGrantKeyType"
            VerticalAlignment="Top" Margin="5,5,0,0" Width="250">
            <ComboBoxItem IsSelected="True">ProjectID</ComboBoxItem>
            <ComboBoxItem>Grant number</ComboBoxItem>
        </ComboBox>

        <TextBox
            Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" Margin="5" Height="180"
            TextWrapping="Wrap" AcceptsReturn="True" x:Name="txtKeys"/>

        <Label
            Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Grant->Pub:
        </Label>
        <ComboBox
            Grid.Row="4" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboGrantPub"></ComboBox>

        <Label
            Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Pub->Pub:
        </Label>
        <ComboBox
            Grid.Row="5" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboPubCitation"></ComboBox>

        <Label
            Grid.Row="6" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Pub->Org:
        </Label>
        <ComboBox
            Grid.Row="6" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboPubOrg"></ComboBox>

        <Label
            Grid.Row="7" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Org Dedup:
        </Label>
        <ComboBox
            Grid.Row="7" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboDedupOrg"></ComboBox>

        <Label
            Grid.Row="8" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Network name:
        </Label>
        <TextBox
            Grid.Row="8" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="txtNetworkName"></TextBox>

        <StackPanel
            Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Center" HorizontalAlignment="Right"
            Orientation="Horizontal" Margin="5">
            <Button x:Name="btnCancel" Content="Cancel" Width="66" Margin="0,0,5,0" Click="btnCancel_Click" />
            <Button x:Name="btnOK" Content="OK" Width="66" Margin="0,0,5,0" Click="btnOK_Click" />
        </StackPanel>
    </Grid>
</UserControl>
